<?php

use App\Admin\Controllers\CourseController;
use App\Admin\Controllers\CourseEvaluateController;
use App\Admin\Controllers\CourseRecommendController;
use App\Admin\Controllers\TeacherController;
use App\Admin\Controllers\TeacherQualificationController;
use App\Admin\Controllers\UserController;
use App\Admin\Controllers\UserSignUpController;
use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->resource('courses', CourseController::class);
    $router->resource('teachers', TeacherController::class);
    $router->resource('users', UserController::class);
    $router->resource('teacher-qualifications', TeacherQualificationController::class);
    $router->resource('user-sign-ups', UserSignUpController::class);
    $router->resource('course-recommends', CourseRecommendController::class);
    $router->resource('course-evaluates', CourseEvaluateController::class);
});
